package com.study.book.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.book.common.R;
import com.study.book.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.book.res.req.LoginReqVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author ASUS
* @description 针对表【Admin】的数据库操作Service
* @createDate 2024-05-05 18:18:07
*/
public interface AdminService extends IService<Admin> {

    R appLogin(LoginReqVo vo);

    R<Admin> userInfo(String id);

    R updateUserInfo(Admin admin);

    long uploadImages(MultipartFile file, String suffix) throws IOException;

    Page<Admin> list(LambdaQueryWrapper lambdaQueryWrapper, Page page);
}
